import { Module } from '@nestjs/common'
import { MongooseModule } from '@nestjs/mongoose'
import { TemplateController } from './template.controller'
import { TemplateService } from './template.service'
import { WorkflowTemplate, WorkflowTemplateSchema } from '../comfy/schemas/workflow-template.schema'

@Module({
    imports: [
        MongooseModule.forFeature([
            { name: WorkflowTemplate.name, schema: WorkflowTemplateSchema }
        ])
    ],
    controllers: [TemplateController],
    providers: [TemplateService],
    exports: [TemplateService]
})
export class TemplateModule { }